package com.yannuo.service.impl;

import com.yannuo.entity.Emp;
import com.yannuo.mapper.EmpMapper;
import com.yannuo.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    private EmpMapper empMapper;
    @Transactional
    @Override
    public List<Emp> listemps() {
        return empMapper.findAll();
    }
}
